﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataList分页.aspx.cs" Inherits="DataList分页" %>

<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
<!--
var aaa;
aaa.height=500;
document.write("dfsfds");
// -->
</script>
</head>
<body>
<form id="Form1" runat="server" language="javascript" onblur="return Form1_onblur()" >
共有<asp:Label id="lblRecordCount" ForeColor="red" runat="server" />条记录&nbsp;
当前为<asp:Label id="lblCurrentPage" ForeColor="red" runat="server" />/<asp:Label id="lblPageCount" ForeColor="red" runat="server" />页&nbsp;

<asp:DataList id="score" runat="server"
HeaderStyle-BackColor="#aaaadd"
AlternatingItemStyle-BackColor="Gainsboro"
EditItemStyle-BackColor="yellow"
>
 <ItemTemplate>
  姓名：<%# DataBinder.Eval(Container.DataItem,"Title") %>
  <asp:LinkButton id="btnSelect" Text="编辑" CommandName="edit" runat="server" />
 </ItemTemplate>
</asp:DataList>
<asp:LinkButton id="lbnPrevPage" Text="上一页" CommandName="prev" OnCommand="Page_OnClick" runat="server" />
<asp:LinkButton id="lbnNextPage" Text="下一页" CommandName="next" OnCommand="Page_OnClick" runat="server" />
    <br />
    <table width=421 height=253 id=aaa>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
    </table>

</form>
</body>
</html>

